package net.huashitong.ssydt.exam.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hemj
 * @version 2017/9/11
 */
@ApiModel(value = "ExamPaperInVO", description = "新增试卷(后台)")
public class ExamPaperInVO implements Serializable {

	@ApiModelProperty(value = "试卷名称")
	@NotBlank(message = "试卷名称不能为空")
	private String paperName;//试卷名称

	@ApiModelProperty(value = "试卷类型")
	@NotBlank(message = "试卷类型不能为空")
	private String paperType;//试卷类型

	@ApiModelProperty(value = "难度系数")
	@NotNull(message = "难度系数不能为空")
	@Range(min = 0, max = 5, message = "难度系数范围(0~5)")
	private BigDecimal coefficient;//难度系数

	@ApiModelProperty(value = "地区")
	@NotBlank(message = "地区不能为空")
	private String area;//地区

	@ApiModelProperty(value = "所属年月")
	@NotBlank(message = "所属年月不能为空")
	private String belongYearMonth;//所属年月

	public String getPaperName() {
		return paperName;
	}

	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}

	public String getPaperType() {
		return paperType;
	}

	public void setPaperType(String paperType) {
		this.paperType = paperType;
	}

	public BigDecimal getCoefficient() {
		return coefficient;
	}

	public void setCoefficient(BigDecimal coefficient) {
		this.coefficient = coefficient;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getBelongYearMonth() {
		return belongYearMonth;
	}

	public void setBelongYearMonth(String belongYearMonth) {
		this.belongYearMonth = belongYearMonth;
	}
}
